import Vue from 'vue'
import Router from 'vue-router'
Vue.use(Router)

//异步路由
const test = r => require.ensure([], () => r(require('../views/test')), 'test')
const player = r => require.ensure([], () => r(require('../views/player/player')), 'player')
export default new Router({
  routes: [
    {
      path: '/',
      component: player
    },
    {
      path: '/player',
      name: 'player',
      component: player
    }

  ]
})